from turbogears import widgets
from mnemoply import reports
from mnemoply.utils import IdsValidator

class PrintTimetableReport(reports.RDSReport):
    name = _("Print timetable")
    tag = "PrintTimetable"
    report_type = reports.RDSReportType.WORD
    template_module = "mnemoply.templates.reports.print_timetable"

    fields = [
        widgets.HiddenField(name="ids", label=_("IDs"), validator=IdsValidator),
        widgets.HiddenField(name="start_date", label=_("Start date")),
    ]

exposed = PrintTimetableReport()
